package day06.Ti;

import java.util.Scanner;

public class TI05YC {
    public static void main(String[] args) {
        mether();
    }

    private static void mether() {
      while (true){
          try {
              Scanner sc=new Scanner(System.in);
              System.out.println("请输入第一个整数");
              int i1 = sc.nextInt();
              System.out.println("请输入第二个整数");
              int i2 = sc.nextInt();
              System.out.println(i1/i2);
              break;
          } catch (Exception e) {
              System.out.println("第二个数不能为0！！");
          }
      }
    }
}
